@import '../../../styles/variables.less';
@import '../../../styles/mixin.less';

.pay-result {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 350px;
    padding: 16px 24px;
    background-color: @white;

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-bottom: 0.5px dashed rgba(0, 0, 0, 0.12);

        .title-box {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            font-weight: 500;
            line-height: 24px;
            color: @primary-color;

            .title {
                margin-left: 4px;
                height: 24px;
            }
        }

        .money {
            display: flex;
            align-items: baseline;
            height: 36px;
            padding: 8px 0 12px;
            font-size: 36px;
            font-weight: 500;
            line-height: 36px;

            .unit {
                margin-right: 4px;
                font-size: 24px;
                font-weight: 500;
                line-height: 24px;
            }
        }
    }

    .detail {
        padding-top: 12px;

        .list-cell {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 14px;
            line-height: 20px;

            .label {
                padding-right: 12px;
                color: @content-color;
            }

            .value {
                color: @label-color;
                display: flex;
                align-items: center;
                height: 20px;
                line-height: 20px;

                .user-avatar {
                    width: 16px;
                    height: 16px;
                    border-radius: 4px;
                    object-fit: cover;
                }
                .user-name{
                    margin-left: 6px;
                }
            }
        }
    }

    .footer {
        position: absolute;
        bottom: 16px;
        box-sizing: border-box;
        width: calc(100% - 48px);
        display: flex;
        justify-content: space-between;
        height: 94px;

        .seller-info {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding-bottom: 18px;
        }

        .poster-info {
            display: flex;
            align-items: center;
            justify-content: space-between;

            .poster {
                width: 36px;
                height: 36px;
                border-radius: 18px;
                object-fit: cover;
            }

            .name-box {
                flex: 1;
                margin: 0 16px 0 8px;

                .seller-name {
                    font-size: 16px;
                    font-weight: 500;
                    line-height: 22px;
                    color: @label-color;
                }

                .staff-name {
                    font-size: 10px;
                    line-height: 14px;
                    color: @content-color;
                }
            }
        }

        .code-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            width: 76px;
            height: 94px;

            .code,
            .code-default {
                width: 76px;
                height: 76px;
                object-fit: cover;
            }

            .code-default {
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: @grap-bg;
                border-radius: 10px;

                .loading-animation {
                    position: absolute;
                    top: 28px;
                    left: 28px;
                    display: inline-block;
                    width: 24px;
                    height: 24px;
                    vertical-align: middle;
                    background: transparent
                        url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E")
                        no-repeat;
                    background-size: 100%;
                    animation: lineLoading 1s steps(12, end) infinite;
                }

                @keyframes lineLoading {
                    0% {
                        transform: rotate3d(0, 0, 1, 0deg);
                    }

                    100% {
                        transform: rotate3d(0, 0, 1, 360deg);
                    }
                }
            }

            .info {
                margin-top: 4px;
                font-size: 10px;
                line-height: 14px;
                color: @content-color;
            }
        }
    }
}
